package com.ttxs.generator.remote.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ttxs.generator.vo.Token;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PlatformDTO extends AbstractDTO {
    private String platformId;
    /**
     * 当项目类型为springBoot时跟projectName相同
     * 项目类型为springCloud时为在ttxs管理平台中添加的平台名字
     */
    private String platformName;
    private String platformNameZh;
    private String description;
    private String status;
    /**
     * springCloud项目标志
     */
    private boolean springCloud;
    /**
     * =项目名字=微服务名字=maven的artifactId
     */
    private String artifactId;

    public PlatformDTO(String url, Token token) {
        super(url, token);
    }
}
